package repo

import "go-weixin/app/diary/model"

type DiaryRepo interface {
	DiaryAdd(userId int64, title string, content string) (int64, error)
	DiaryUpdate(id int64, userId int64, title string, content string) (int64, error)
	DiaryDeleteById(Id int64) (int64, error)
	DiaryList(limit int64, offset int64, diaryList *[]model.DiaryModel) error
	DiaryGetById(id int64, diary *model.DiaryModel) (bool, error)
	DiaryLikeByTitle(title string, limit int, offset int, diaryList *[]model.DiaryModel) error
}
